<?
include('config.php');
$rNews   = getValue('rNews','str','GET','');
$iNews   = getvalue('iNews','int','GET',0);
include('../includes/inc_news_cat_init.php');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi" lang="vi" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
<title><?=trim($list_news['new_title'])?> - Tin tức</title>
<meta name="keywords" content="<?=substr(trim(str_replace(" ",',',$list_news['new_title'])),0,-1)?>"/>
<meta name="description" content='<?=($list_news['new_teaser'])?$list_news['new_teaser']:cut_string(removeTitle($list_news['new_detail']),200,'')?> - vnupdate.net'/>
<?=$css_global?>
<?//$js_global?>
</head>
<body>
<!-- BEGIN wrapper -->
<div id="wrapper">
  <!-- BEGIN header -->
  <div id="header">
    <!-- begin pages -->
    <!-- begin logo -->
     <div class="logo">
        <a href="/"><img src="http://vnupdate.net/themes/img/logo.png" alt="Logo vnupdate.net"/></a>
    </div>
    <!-- end logo -->
    <!-- begin categories -->
    <div class="categories_nav">
        <ul class="categories">
            <li class="active">
                <a href="<?=DOMAIN?>" title="Tin tức cập nhật vnupdate.net - Tin tức online 24h">Home</a>
            </li>  
            <li class="">
                <a href="<?=DOMAIN?>/xa-hoi.htm" title="Xã hội">Xã hội</a>
            </li> 
            <li class="">
                <a href="<?=DOMAIN?>/the-gioi.htm" title="Thế giới">Thế giới</a>
            </li> 
            <li class="">
                <a href="<?=DOMAIN?>/kinh-te.htm" title="Kinh tế">Kinh tế</a>
            </li> 
            <li class="">
                <a href="<?=DOMAIN?>/phap-luat.htm" title="Pháp luật">Pháp luật</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/bong-da.htm" title="Bóng đá">Bóng đá</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/tinh-yeu-gioi-tinh.htm" title="Tình yêu - Giới tính">Tình yêu - Giới tính</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/gioi-tre.htm" title="Giới trẻ">Giới trẻ</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/van-hoa.htm" title="Văn hóa">Văn hóa</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/giai-tri.htm" title="Giải trí">Giải trí</a>
            </li>
            
            <li class="">
                <a href="<?=DOMAIN?>/cong-nghe.htm" title="Công nghệ">Công nghệ số</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/giao-duc.htm" title="Giáo dục">Giáo dục</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/khoa-hoc.htm" title="Khoa học">Khoa học</a>
            </li>
            <li class="">
                <a href="<?=DOMAIN?>/chuyen-la.htm" title="Chuyen la">Chuyện lạ</a>
            </li>
        </ul>
    </div>
    <!-- end categories -->
  </div>
  <!-- END header -->
  <!-- BEGIN content -->
  <div id="content">
    <!-- begin featured -->
    <div id="featured">
        <div class="post">
            <h2><a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>"><?=$list_news['new_title']?></a></h2>
            <p class="details" itemprop="datePublished"><time  datetime="<?=date('d/m/y ',$list_news['new_date'])?> <?=date('H:i',$list_news['new_date'])?>"> <?=getDateTime('','1','1','1','',$list_news['new_date']+5*3600)?></time></p>
            <div class="thumb"><a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>"><img src="<?=$list_news['new_picture']?>" alt="<?=$list_news['new_title']?>" /></a></div>
            <p class="sumary"><?=(!empty($list_news['new_teaser']))?$list_news['new_teaser']:strip_tags(cut_string($list_news['new_detail'],250,'.'))?></p>
            <p class="readmore">[ <a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>">read more</a> ]</p>
            <p class="tags">TAGS:<?$arr_tags = explode(',',$list_news['new_tags']);
                $total_tags = count($arr_tags);
                foreach($arr_tags as $key=>$tags){
                    $tags = trim($tags);
                    if(!empty($tags)){
                        $tags_link  =   trim(str_replace(' ','+',$tags));
                        if($key <= $total_tags - 3){
                        ?><a href="<?=DOMAIN_MOBILE.'/tags/'.$tags_link?>"><?=trim($tags)?></a>, <? 
                        }else{
                        ?><a href="<?=DOMAIN_MOBILE.'/tags/'.$tags_link?>"><?=trim($tags)?></a><?
                        }   
                    }
                }
                ?> </p>
            <div class="break"></div>
        </div>
        <?foreach($arr_relate as $list_news){?>
        <div class="post">
            <h2><a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>"><?=$list_news['new_title']?></a></h2>
            <p class="details" itemprop="datePublished"><time  datetime="<?=date('d/m/y ',$list_news['new_date'])?> <?=date('H:i',$list_news['new_date'])?>"> <?=getDateTime('','1','1','1','',$list_news['new_date']+5*3600)?></time></p>
            <div class="thumb"><a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>"><img src="<?=$list_news['new_picture']?>" alt="<?=$list_news['new_title']?>" /></a></div>
            <p class="sumary"><?=(!empty($list_news['new_teaser']))?$list_news['new_teaser']:strip_tags(cut_string($list_news['new_detail'],250,'.'))?></p>
            <p class="readmore">[ <a href="<?=DOMAIN.generate_detail_url($list_news,GetNamecat($list_news['new_cat_id']))?>">read more</a> ]</p>
            <p class="tags">TAGS:<?$arr_tags = explode(',',$list_news['new_tags']);
                $total_tags = count($arr_tags);
                foreach($arr_tags as $key=>$tags){
                    $tags = trim($tags);
                    if(!empty($tags)){
                        $tags_link  =   trim(str_replace(' ','+',$tags));
                        if($key <= $total_tags - 3){
                        ?><a href="<?=DOMAIN_MOBILE.'/tags/'.$tags_link?>"><?=trim($tags)?></a>, <? 
                        }else{
                        ?><a href="<?=DOMAIN_MOBILE.'/tags/'.$tags_link?>"><?=trim($tags)?></a><?
                        }   
                    }
                }
                ?> </p>
            <div class="break"></div>
        </div>
        <?}?>
    <!-- end featured -->
  </div>
  <!-- END content -->
  <!-- BEGIN sidebar -->
  <div id="sidebar">
    <!-- begin sponsors -->
    <!-- END right -->
  </div>
  <!-- END sidebar -->
</div>
</div>
<!-- END wrapper -->
<!-- BEGIN footer -->
<div id="footer">
Copyright &copy; 2013 - <a href="http://vnupdate.com/">Vnupdate</a> &middot; All Rights Reserved
</div>
<!-- END footer -->
</body>
</html>
